package com.jiujia.game.sdk.base;

import com.jiujia.game.sdk.base.util.JGameConfigReader;

/**
 * *************************************************
 * Class: GameConfigManage
 * Author: Jiujia
 * Time: 2025/4/30 17:07
 * Description: assets/game_config.ini 用于读取游戏的配置信息
 * *************************************************
 */
public class JGameConfigManager {

    private static final String CONFIG_FILE = "game_config.ini";
    private static final String SDK_SECTION = "SDK";

    public static String getAppId() {
        return JGameConfigReader.getValue(CONFIG_FILE, SDK_SECTION, "app_id");
    }

    public static String getAppKey() {
        return JGameConfigReader.getValue(CONFIG_FILE, SDK_SECTION, "app_key");
    }

    public static String getPackageId() {
        return JGameConfigReader.getValue(CONFIG_FILE, SDK_SECTION, "app_package_id");
    }

    public static String getVersion() {
        return JGameConfigReader.getValue(CONFIG_FILE, SDK_SECTION, "app_version");
    }

    public static boolean isDebugMode() {
        String debugMode = JGameConfigReader.getValue(CONFIG_FILE, SDK_SECTION, "app_debug_mode");
        return Boolean.parseBoolean(debugMode);
    }
}